package com.kinon.ycjshop.sqlbean;

import org.litepal.annotation.Column;
import org.litepal.crud.DataSupport;

import java.io.Serializable;

/**
 * Created by luohao on 2017-08-09.
 */

public class BuyGoodsBean extends DataSupport implements Serializable {
    @Column(nullable = false)
    private String goodsid;
    private String code;
    private String name;
    private double price;
    private double amount;

    public BuyGoodsBean(String goodsid, String code, String name, double price, double amount) {
        this.goodsid = goodsid;
        this.price = price;
        this.amount = amount;
        this.code = code;
        this.name = name;
    }

    public String getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(String goodsid) {
        this.goodsid = goodsid;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "BuyGoodsBean{" +
                "goodsid='" + goodsid + '\'' +
                ", code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", amount=" + amount +
                '}';
    }
}
